package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dao.post.PostMapper;
import com.bbzn.device.client.dataobject.Post;
import com.bbzn.device.client.service.PostService;
@Service
public class PostServiceImpl implements PostService{

    @Resource
    private PostMapper postMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return postMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Post record) {
        return postMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(Post record) {
        return postMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Post record) {
        return postMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(Post record) {
        return postMapper.insertSelective(record);
    }

    @Override
    public Post selectByPrimaryKey(Long id) {
        return postMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Post record) {
        return postMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Post record) {
        return postMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Post> findByAll(Post post) {
        return postMapper.findByAll(post);
    }

    @Override
    public int updateBatch(List<Post> list) {
        return postMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Post> list) {
        return postMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Post> list) {
        return postMapper.batchInsert(list);
    }

}
